package day1119;

public class Demo16 {
    public static void main(String[] args) {
        for(int i=1;i<=3;i++){

            for(int x=1;x<=4-i;x++){//执行两遍
                System.out.print(" ");
            }

            for(int x=1;x<=2*i-1;x++){//执行3遍
                if(x==1  ||  x==2*i-1){
                    System.out.print("*");
                }else{
                    System.out.print(" ");
                }
            }
            System.out.println();
        }
        System.out.println("*******");
    }
}
